package com.curso.sesion10;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author MATEUS
 *
 */
public class FileBufferCopier {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		File inputFile = new File("E:\\Cesar\\CursoJava\\sitesCopy.txt");
		File outputFile = new File("E:\\Cesar\\CursoJava\\sitesCopy2.txt");
		BufferedReader in = new BufferedReader(new FileReader(inputFile));
		BufferedWriter out = new BufferedWriter(new FileWriter(outputFile));
		
		String line;
		while ((line = in.readLine()) != null) {
			out.write(line);
			out.newLine();
		}
		
		in.close();
		out.flush();
		out.close();
		
	}

}
